src := $(shell ls -t *.c | head -n 1)
target := $(basename $(notdir $(src)))
$(target): $(src)
	$(CC) $(CFLAGS) -o $@ $<

.PHONY: run
run: $(target)
	./$(target)
	rm $(target)